import { GET,POST } from '../request';

class detail {
    getDayEnergy = data => POST({ title: '获取日用电量', data, url: PREFIX + 'roomInfo/getDayEnergy' })
    getMonthEnergy = data => POST({ title: '获取月用电量', data, url: PREFIX + 'roomInfo/getMonthEnergy' })
    getYearEnergy = data => POST({ title: '获取年用电量', data, url: PREFIX + 'roomInfo/getYearEnergy' })
    getMonthPue = data => POST({ title: '获取月pue', data, url: PREFIX + 'roomInfo/getMonthPue' })
    getLink = data => POST({ title: '获取用电环比', data, url: PREFIX + 'roomInfo/getLink' })
    getRoomStatement = data => POST({ title: '获取机房概况', data, url: PREFIX + 'roomInfo/getRoomStatement' })
    real_time = data => POST({ title: '实时统计接口', data, url: PREFIX + `api/room_monitor/real_time/${data.functionType}/${data.selectType}` })
    getAlarmInfo = data => POST({ title: '实时统计接口', data, url: PREFIX + 'roomInfo/getAlarmInfo' })
    getRatio = data => POST({ title: '获取用电同比', data, url: PREFIX + 'roomInfo/getRatio' })
    getMeterStrategy = data => GET({ title: '查询电表物联网空开策略', data, url: PREFIX + 'api/room_monitor/getMeterStrategy' })
    getMeterLogList = data => GET({ title: '查询电表控制下发指令日志', data, url: PREFIX + 'api/room_monitor/getMeterLogList' })
    getInfraredLogList = data => GET({ title: '查询红外控制下发指令日志', data, url: PREFIX + 'api/room_monitor/getInfraredLogList' })
    setMeterStrategy = data => POST({ title: '设置电表物联网空开策略', data, url: PREFIX + 'api/room_monitor/setMeterStrategy' })
    deviceControl = data => POST({ title: '设备控制', data, url: PREFIX + 'api/room_monitor/deviceControl' })
}

export default new detail()
